/*
 * Copyright (c) 2024 Huawei Technologies Co.,Ltd.
 *
 * openGauss is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 * http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * -------------------------------------------------------------------------
 *
 * log_format.h
 * Log format constants.
 *
 * IDENTIFICATION
 * src/gausskernel/storage/mot/core/utils/log_format.h
 *
 * -------------------------------------------------------------------------
 */

#ifndef LOG_FORMAT_H
#define LOG_FORMAT_H

namespace MOT {
/* * @enum Log format constants. */
enum LogFormat {
    /** @brief Invalid log format. */
    LOG_FORMAT_INVALID,

    /** @brief Internal log format. */
    LOG_FORMAT_INTERNAL,

    /** @brief External (GaussDB) log format. */
    LOG_FORMAT_EXTERNAL
};

/** @brief Converts string to log level constant. */
extern LogFormat LogFormatFromString(const char *logFormatStr);

/** @brief Converts log level constant to string. */
extern const char *LogFormatToString(LogFormat logFormat);
} // namespace MOT

#endif /* LOG_FORMAT_H */
